export const convertTreeSelectData = (data, keys) => {
  for (let i = 0, len = data.length; i < len; ) {
    const item = data[i]
    item.value = item[keys[0]]
    item.title = item[keys[1]]
    if (item.children) {
      item.children = convertTreeSelectData(item.children, keys)
    }
    i += 1
  }
  return data as any
}
